package com.v5ba.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author yiren
 * @date 2018-12-25
 */
@FeignClient(name = "eureka-user1")
public interface IRemote {
    @PostMapping("/hello")
    String hello();

    @PostMapping("/hello2")
    String hello2(@RequestParam("name") String name);

    @PostMapping("/hello3")
    User hello3(@RequestParam("name") String name);
}
